/**************************************************************************
 *         Copyright(c) 2007 by Sunplus mMedia  Technology Co., Ltd.       *
 *                                                                         *
 *  This software is copyrighted by and is the property of Sunplus mMedia  *
 *  Technology Co., Ltd. All rights are reserved by Sunplus mMedia Techno- *
 *  logy Co., Ltd. This software may only be used in accordance with the   *
 *  corresponding license agreement. Any unauthorized use, duplication,    *
 *  distribution, or disclosure of this software is expressly forbidden.   *
 *                                                                         *
 *  This Copyright notice "M U S T" not be removed or modified without     *
 *  prior written consent of Sunplus mMedia Technology  Co., Ltd.          *
 *                                                                         *
 *  Sunplus mMedia Technology Co., Ltd. reserves the right to modify this  *
 *  software without notice.                                               *
 *                                                                         *
 *  Sunplus mMedia Technology Co., Ltd.                                    *
 *  19-1, Innovation First Road, Science-Based Industrial Park,            *
 *  Hsin-Chu, Taiwan, R.O.C.                                               *
 *                                                                         *
 **************************************************************************/
#ifndef __APP_INIT_H__
#define __APP_INIT_H__

#include "solution.h"
/**************************************************************************
 *                           C O N S T A N T S                            *
 **************************************************************************/
#define LIFE_SPAN_TEST		0
#if (_HW_SOLUTION_ == _HW_TK_MODEL_B_)
#define NAND_SUPPORT_ONLY	0
#define NAND_SUPPORT		1
#else
#define NAND_SUPPORT_ONLY	0
#define NAND_SUPPORT		1
#endif
#define TV_PLAY_OPTION		0
#define TV_FULL_OPTION		1
#define TV_NOSUP_OPTION		2
#define TV_OPTION       		TV_FULL_OPTION

#define APP_DPOF_INIT	0
#define MP3_OPTION              0

#define FRONT_TEST 0
/* ------ Note: Demo code zone start flag, don't modify or delete this line!!! ------ */
#define PHOTO_FRAME_PV		1
#define PHOTO_FRAME_PB 		1//jintao.liu 2008-6-17 for photo frame pb
/* ------ Note: Demo code zone end flag, don't modify or delete this line!!! ------ */		

/* please refers to definition section of "device.h" for "DISK" selection */
#if 0
//Rsv type selection
#define NAND_OPTION		0
#define SPI_OPTION		1
#define RSV_OPTION              NAND_OPTION //support NAND rsv
#endif

//------------------------------------------------------------------------------
//USB MSDC Multi-LUN Option =
//                              0 Disable
//                              1 Enable
//------------------------------------------------------------------------------
//patch4.5@richie@mlun end

#if(_HW_SOLUTION_ == _HW_TK_MODEL_B_)
	#define MLUN_OPTION				1
#else
	#define MLUN_OPTION				1
#endif

/***************************
*jintao.liu 2008-6-17 add
*
*Note:
*	to disable copy to card
*	define 0
*/
#define CP_TO_CARD_EN	0

/*Define the bank number where the func-pointer related function store in*/
#define SP1K_BANK_POWER_ON    11
#define SP1K_BANK_STILL_VIEW  11
#define SP1K_BANK_STILL_PLAY  11
#define SP1K_BANK_MUTI_PLAY   11
#define SP1K_BANK_VIDEO_VIEW  11
#define SP1K_BANK_VIDEO_PLAY  11
#define SP1K_BANK_AUDIO_REC   11
#define SP1K_BANK_AUDIO_PLAY  11
#define SP1K_BANK_MENU        11
#define SP1K_BANK_USB         11
#define SP1K_BANK_SLIDE_SHOW  11
#define SP1K_BANK_PAN_SHOW    11
//#define SP1K_BANK_MSG_BOX     11

#define SP1K_BANK_NUM_MAX		15

/**************************************************************************
 *                              M A C R O S                               *
 **************************************************************************/

/**************************************************************************
 *                          D A T A    T Y P E S                          *
 **************************************************************************/

/**************************************************************************
 *                         G L O B A L    D A T A                         *
 **************************************************************************/

/**************************************************************************
 *                 E X T E R N A L    R E F E R E N C E S                 *
 **************************************************************************/

/**************************************************************************
 *               F U N C T I O N    D E C L A R A T I O N S               *
 **************************************************************************/
void memInit(void);
void devInit(void);
void appInit(void);
void appButtonInit(void);
UINT8 appOpenImgShow(UINT8 mode);
void appGpioInit(void);
void appMemDosRamInit(void);

#endif  /* __APP_INIT_H__ */

